﻿<!DOCTYPE html>
<html >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 智能题目系统</title>

    <script src="~/layui/layui.js"></script>

    <link type="text/css" rel="stylesheet" href="~/layui/css/layui.css" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script src="~/Scripts/jquery-3.4.1.min.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.js"></script>
    @*<script src="~/Scripts/jquery-1.10.2.js"></script>*@
    <link type="text/css" rel="stylesheet" href="~/Content/layoutCss.css" />
    <style type="text/css">
        .navbar.navbar-inverse.navbar-fixed-top {
            background: #393D49 
        }

        body {
            background-image: url(/img/homePage.png);
            background-repeat: no-repeat;
            background-size: 100% 100%
        }
        #welcome {
            font-family: KaiTi;
            font-weight: bold;
            font-size: 80px;
            text-align: center;
            color: #01AAED;
            opacity: 0.6;
            background: #ffffff;
            background: rgba(255, 255, 255, 0.6);
            width: 100%
        }
        #startToUse {
            width: 250px;
            margin-top: 50px;
            text-decoration: none;
            font-size: 24px
        }
    /*#changeColor{
            background: transparent;
            color: white
        }
        li.dropdown {
            color: white
        }
        #changeColor:hover {
            background: red;
        }*/
    </style>
</head>
<body class="layui-bg-gray" style="height: 100%">
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <img src="~/img/logo.png" alt="logo" style="width: 50px;height: 50px" class="pull-left" />
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>

                @Html.ActionLink("智能题库系统", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">

                <ul class="nav navbar-nav">
                    <li>@Html.ActionLink("主页", "Index", "Home")</li>
                    <li class="dropdown">
                        <a class=" dropdown-toggle" data-toggle="dropdown" href="#" id="changeColor">功能菜单<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            @if (User.IsInRole("teachers") || User.IsInRole("admin"))
                            {
                                <li>@Html.ActionLink("Word导入", "Index", "WordImport")</li>
                                <li>@Html.ActionLink("课程中心(教师)", "Index", "Curricula")</li>
                            }

                            @if (User.IsInRole("students"))
                            {
                                <li>@Html.ActionLink("课程中心(学生)", "StuIndex", "Curricula")</li>
                            }
                        </ul>
                    </li>
                    @*<li><a href="#">N/A</a></li>
                    <li><a href="#">N/A</a></li>*@
                </ul>

                @*<ul class="nav nav-pills ">
                        <li>N/A</li>
                        <li class="dropdown"><span>N/A</span>
                            <ul class="dropdown-menu">
                                <li>N/A</li>
                            </ul>
                        </li>
                    </ul>*@

                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content" style="width: 100%">
        @RenderBody()

        <footer style="position: absolute;top:95%;left:85%">
            <p>&copy; @DateTime.Now.Year - 广州软件学院</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
